package com.klaus.ohMySpace.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by Mklaus on 15/8/11.
 */
@Entity
@Table(name = "token")
public class Token extends BasicEntity{
    @Column(name = "userId")
    private int userId;

    @Column(name = "token",length = 32)
    private String token;

    @Column(name = "device_id")
    private String deviceId;

    public Token() {
    }

    public Token(int userId, String token, String deviceId) {
        this.userId = userId;
        this.token = token;
        this.deviceId = deviceId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }
}
